const Mongoose = require('mongoose');

const Schema = Mongoose.Schema;

const UserSchema = new Schema({
    name: { type: String, index: true },
    loginname: { type: String, unique: true },
    pass: { type: String },
    email: { type: String, unique: true },
    url: { type: String },
    profile_image_url: {type: String},
    location: { type: String },
    signature: { type: String },
    profile: { type: String },
    weibo: { type: String },
    avatar: { type: String }
});

Mongoose.model('User', UserSchema);